﻿/// <reference path="../../Scripts/jquery-1.3.2-vsdoc.js" />
var ajax = window.ajax = _ajax = {
    version: "1.0.0.0",

    loading: function() {
        return $("#loading");
    },

    showLoading: function() {
        _ajax.loading().show();
    },

    hideLoading: function() {
        _ajax.loading().hide();
    },

    post: function(url, target, callback) {
        _ajax.showLoading();
        var param = $('form').serialize();
        $.post(url, param, function(data) {
            _ajax.hideLoading();
            if (target) {
                $(target).html(data);
            }
            if (callback) {
                callback(data);
            }
        });
    }
}

$(document).ready(function() {
    var pagers = $(".pager a");

});